# -*- coding:utf-8 -*-
# Author:Ami
# @Time    : 2018/11/10 10:08

# data = open("yeser.txt", encoding="utf-8").read()
# 文件句柄
f = open("yeser.txt", 'r', encoding="utf-8")
# data = f.read()
# print(data)
#
# f.write("\n上帝武装，\n")
# f.write("我爱北京天安门233")

# for i in range(5):
#     print(f.readline())
# print(f.readline())
# for line in f.readline():
#     print(line)
# high bige
# count = 0
# for line in f:
#     if count == 9:
#         count += 1
#         continue
#     print(line)
#     count += 1
# f.close()

# 文件指针
print(f.tell())
print(f.readline())
print(f.readline())
print(f.readline())
print(f.tell())
f.seek(0)
print(f.readline())

print(f.encoding)

print(f.fileno())
#强制刷新  写入硬盘
print(f.flush())